package com.hqm.meta;

/**
 * 用户对象（买家or卖家）
 * @author hqm2zxy
 *
 */
public class User {
	
    private Integer id;			//用户ID
    private String username;	//用户名
    private String password;	//登录密码
    private String nickname;	//用户昵称
    private Byte usertype;		//用户类型，买家0，卖家1

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public Byte getUsertype() {
        return usertype;
    }

    public void setUsertype(Byte usertype) {
        this.usertype = usertype;
    }
}